﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using xmgl.Models;

namespace xmgl.Bll
{
    public class UserBll
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="bean"></param>
        /// <returns></returns>
        public bool Login(User bean)
        {
            if ("admin".Equals(bean.LoginName) && "admin".Equals(bean.Password))
            {
                return true;
            }
            return false;
        }
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="bean"></param>
        /// <param name="newPwd"></param>
        /// <returns></returns>
        public bool ModifyPwd(User bean, string newPwd)
        {
            if (bean.LoginName == "admin" && bean.Password == "admin")
            {
                return true;
            }
            return false;
        }
    }
}